package beautysalonsystem.service;

import beautysalonsystem.mapper.UserMapper;
import beautysalonsystem.pojo.Admin;
import beautysalonsystem.pojo.Customer;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserService {

    @Autowired
    private UserMapper userMapper;

    //查询admin信息
    public Admin getAdminByPhone(String phone){
        return userMapper.getAdminByPhone(phone);
    }

    //查询customer信息
    public Customer getCustomerByPhone(String phone){
        return userMapper.getCustomerByPhone(phone);
    }
}
